<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/libs/modernizr.min.js"></script>
    <!--<script src="__PUBLIC__/jquery.js" charset="utf-8"></script>
    <script type="text/javascript">
      $(function(){
        $('.btn2').click(function(){
          var text=$('#common-text').val()
          $('.result-tab tr:not("#shuxing")').hide().filter(':contains("'+text+'")').show();
        });
      });
    </script>-->
    <style>
     td {
      vertical-align: middle;
      text-align: center;
    }
    </style>
</head>
<body>
<include file="Public/head"/><!--引入头部栏-->
<div class="container clearfix">
    <!--/sidebar-->
    <include file="Public/left"/><!--//引入左部栏目-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">文章管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="" method="post">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="">全部</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="common-text" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="__CONTROLLER__/add"><i class="icon-font"></i>新增文章</a>
                        <!--<a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>-->
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr id="shuxing">
                            <th>ID</th>
                            <th>文章标题</th>
                            <th>缩略图</th>
                            <th>栏目</th>
                            <th>操作</th>
                        </tr>
                      <volist name="list" id="c">
                        <tr>
                            <td>{$c.id}</td>
                            <td title=""><a target="_blank" href="#" title=""></a>{$c.title}</td>
                            <!-- <td title=""><a target="_blank" href="#" title=""></a>{$c.pic}</td> -->
                            <td style="width:150px;">
                              <if condition="$c['pic'] neq ''">
                                <img class="small_img" src="__ROOT__/Uploads/{$c.pic}" alt="">
                                <else />
                                无缩略图
                              </if>
                            </td>
                            <td title=""><a target="_blank" href="#" title=""></a>{$c.catename}</td>
                            <td style="font-size:20px;width:150px;">
                                <a class="link-update" href="{:U('Admin/article/edit',array('id'=>$c['id']))}">修改</a>
                                <a class="link-del" onclick="return confirm('确定要删除？');" href="{:U('Admin/article/del',array('id'=>$c['id']))}">删除</a>
                            </td>
                        </tr>
                      </volist>
                    </table>
                    <div class="list-page" > {$page}</div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
